#!/bin/sh
# has been configured the .ssh/authorized_keys
TIME=`date +%Y-%m-%d_%H-%M-%S`
OPENFIRE_HOME=/root/bin/openfire
LOCAL_OF_HOME=E:/openfire/openfire-phone

ssh root@ali.tyoushi.com -t "cd ~/bin/openfire/bin&&./stop.sh"
ssh root@ali.tyoushi.com -t "cp -f $OPENFIRE_HOME/plugins/vplugin.jar ~/data/bak/vplugin-$TIME.jar"
scp $LOCAL_OF_HOME/target/openfire/plugins/vplugin.jar root@ali.tyoushi.com:$OPENFIRE_HOME/plugins/vplugin.jar
#ssh root@ali.vidmt.com -t "cd ~/bin/openfire/bin&&./startup-official.sh"

#ssh root@ali2.vidmt.com -t "cd ~/bin/openfire/bin&&./stop.sh"
#ssh root@ali2.vidmt.com -t "cp -f $OPENFIRE_HOME/plugins/vplugin.jar ~/data/bak/vplugin-$TIME.jar"
#scp $LOCAL_OF_HOME/target/openfire/plugins/vplugin.jar root@ali2.vidmt.com:$OPENFIRE_HOME/plugins/vplugin.jar
#ssh root@ali.vidmt.com -t "cd ~/bin/openfire/bin&&./startup-official.sh"


ssh root@ali.tyoushi.com

